<template>
  <!-- 每一项内容 -->
  <!-- 当item.completed=true时将文本的中横线去掉 -->
  <span :style="{ textDecoration: item.completed ? 'line-through' : '' }">
    {{ item.content }}
  </span>
</template>

<script>
export default {
  name: "TodoContent",
  props: ["item"],
};
</script>